<?php
class Default_Model_Managers_EntityTypes
{
    protected $_dbTable;
    
    public function __construct()
    {
        $this->_dbTable = new Default_Model_DbTable_EntityTypes;
    }
    
    public function getEntityById($id)
	{
		return $this->_dbTable->getEntityById($id);
	}
	
    public function getAllEntities($onlyMain = 1)
	{
	    $entitiesRowset = $this->_dbTable->getAllEntities($onlyMain);
	    $entities = $entitiesRowset->toArray();
		return $entities;
	}
}